package utilPartTwo;

import java.util.StringTokenizer;

public class STDemo {
    static String in="title=Java:The Complete Reference; author=Schildt; publisher=McGraw-Hill; copyright=2014;";

    public static void main(String[] args) {
        StringTokenizer stk=new StringTokenizer(in,"=;");

        while (stk.hasMoreTokens()){
            String key=stk.nextToken();
            String val=stk.nextToken();
            System.out.println(key+"\t"+val);
        }

    }

}
